package test.enumeration;

import java.util.*;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.HashMap;

public class Enum{
	
	public static void main(String args[]){
		//Hashtable<String, Integer> hash = new Hashtable<String, Integer>();
		Hashtable hash=new Hashtable();
		hash.put("abc", 1);
		hash.put("def", 2);
		hash.put("hij", 3);
		Enumeration enume=hash.keys();
		while(enume.hasMoreElements()){
			String str=(String)enume.nextElement();
			System.out.println("---"+str);
			System.out.println("---"+hash.get(str));
		}
		
		
		
	}
	
	
		
	
}